<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>update_problem</title>
    <link rel="stylesheet" href="http://unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>

<script src="http://unpkg.com/layui@2.6.8/dist/layui.js"></script>

<body>
    <form action="/update_problem" method="post">
        <input type="submit" class="layui-btn" value="新增题目" name="insert" />
    </form>
    <table class="layui-table" lay-even lay-skin="row">
        <colgroup>
            <col width="150">
            <col width="200">
            <col width="50">
            <col width="50">
        </colgroup>
        <thead>
            <tr>
                <th>题号</th>
                <th>标题</th>
                <th>修改题目内容</th>
                <th>修改题目文件</th>
            </tr>
        </thead>
        <tbody>
            {{ range $problem := .problems}}
            <tr>
                <td><a href="/problem?problem_id={{ $problem.ProblemId }}">{{ $problem.ProblemId }}</a></td>
                <td>{{ $problem.Title }}</td>
                <td><a href="/update_problem?problem_id={{ $problem.ProblemId }}">内容修改</a></td>
                <td><a href="/update_datafile?problem_id={{ $problem.ProblemId }}">文件修改</a></td>
            </tr>
            {{ end }}
        </tbody>
    </table>
</body>

</html>